//
//  mapAnnotation.m
//  citipad
//
//  Created by Chih Yuan Liu on 3/13/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "mapAnnotation.h"


@implementation mapAnnotation


double latitude;
double longitude;
NSString * strtitle;
NSString * strsubtitle;

-(void) setPos:(double)lat lng:(double)lng{
	latitude = lat;
	longitude = lng;
}

-(void) setAnnoTitle:(NSString*)stitle subtitle:(NSString*)ssubtitle{
	strtitle = stitle;
	strsubtitle = ssubtitle;
}

-(CLLocationCoordinate2D)coordinate;
{
    CLLocationCoordinate2D theCoordinate;
    theCoordinate.latitude = latitude;
    theCoordinate.longitude = longitude;
    return theCoordinate; 
}

// required if you set the MKPinAnnotationView's "canShowCallout" property to YES
- (NSString *)title
{
    return strtitle;
}

// optional
- (NSString *)subtitle
{
    return strsubtitle;
}

- (void)dealloc
{
    [super dealloc];
}


@end
